package com.fish.admin.module.tenant.domain.dto;

import com.fish.common.core.validation.InsertDefaultGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class TenantInfoDTO {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String account;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = {InsertDefaultGroup.class})
    private String secret;
    /**
     * 角色id
     */
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

}
